package com.sino.operation.peripheral.esc.response.core;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.sino.operation.peripheral.esc.response.EscResAppHead;
import com.sino.operation.peripheral.esc.response.EscResSysHead;
import com.sino.operation.peripheral.esc.response.LocalResHead;
import com.sino.operation.peripheral.esc.response.core.body.EscResBody;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Title: EscCoreDto
 * @Description:
 * @Author dengls
 * @date 2021/11/5 18:57
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "接收核心返回对象")
public class EscCoreDto<T extends EscResBody> {

    @JsonProperty("SYS_HEAD")
    @ApiModelProperty(value = "ESC系统响应头", name = "escResSysHead")
    private EscResSysHead escResSysHead;

    @JsonProperty("APP_HEAD")
    @ApiModelProperty(value = "ESC-APP响应头", name = "escResAppHead")
    private EscResAppHead escResAppHead;

    @JsonProperty("LOCAL_HEAD")
    @ApiModelProperty(value = "ESC-LOCAL_HEAD响应头", name = "localResHead")
    private LocalResHead localResHead;

    @ApiModelProperty(value = "ESCBody数据", name = "escResBody4511")
    @JsonProperty("BODY")
    private T escResBody;
}
